home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / g__~1 / gpinc20.zoo / g_config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-13  |  2.3 KB  |  119 lines

  1. #ifndef _G_config_h
  2. #define _G_config_h
  3.  
  4. // This files contains various system-dependent typedefs and defines.
  5. // The file only defines names in the implementor's namespace.
  6. // E.g. We define _G_size_t and not size_t.
  7. // Thus other include files can safely use _G_size_t without clashes.
  8. // In the long run, we should probably have a separate file
  9. // for each configuration.
  10.  
  11. // i dunno about the orig, its rather sleezy,
  12. //  here are the defs for atariST (should be this way for any machine with
  13. //  even halfway decent header files).
  14.  
  15. #include <stddef.h>
  16. #include <stdio.h>
  17. #include <time.h>
  18. #include <stdarg.h>
  19.  
  20. #ifndef _G_size_t
  21. #define _G_size_t size_t
  22. #endif
  23.  
  24. #ifndef _G_ssize_t
  25. #define _G_ssize_t long
  26. #endif
  27.  
  28. #ifndef _G_time_t
  29. #define _G_time_t time_t
  30. #endif
  31.  
  32. // Use _G_const for parameters that ought to be const,
  33. // but might not be in the vendor include files.
  34.  
  35. #ifndef _G_const
  36. #define _G_const const
  37. #endif
  38.  
  39. #ifndef _G_va_list
  40. #define _G_va_list va_list
  41. #endif
  42.  
  43. #ifndef _G_fpos_t
  44. /* cant do this as yet because our fpos_t is correctly unsigned (in <stdio.h>)
  45.    #define  _G_fpos_t fpos_t */
  46. #define _G_fpos_t long
  47. #endif
  48.  
  49. #ifndef _G_off_t
  50. #define _G_off_t long
  51. #endif
  52.  
  53. #ifndef _G_FOPEN_MAX
  54. #define _G_FOPEN_MAX FOPEN_MAX
  55. #endif
  56.  
  57. #ifndef _G_FILENAME_MAX
  58. #define _G_FILENAME_MAX FILENAME_MAX
  59. #endif
  60.  
  61. #ifndef _G_ARGS
  62. #define _G_ARGS(X) X
  63. #endif
  64.  
  65. /* #ifndef _G_BROKEN_SIGNED_CHAR
  66.    #define _G_BROKEN_SIGNED_CHAR 1
  67.    #endif
  68. */
  69.  
  70. #ifndef __MINT__
  71. #  ifdef _G_HAVE_SYS_RESOURCE
  72. #    undef _G_HAVE_SYS_RESOURCE
  73. #  endif
  74. #else
  75. #  ifndef _G_HAVE_SYS_RESOURCE
  76.  
  77. #    define _G_HAVE_SYS_RESOURCE 1
  78. #  endif
  79. #endif
  80.  
  81. #ifdef _G_HAVE_ST_BLKSIZE
  82. #undef _G_HAVE_ST_BLKSIZE
  83. #endif
  84.  
  85. //
  86. // NOTE: _G_BUFSIZ is used in contexts where it would make arrays dynamic.
  87. // gcc groks that just fine. other compilers will break. (a simple solution
  88. // would be to replace such contexts with alloca()'s)
  89.  
  90. extern "C" unsigned long __DEFAULT_BUFSIZ__;
  91. #define _G_BUFSIZ __DEFAULT_BUFSIZ__
  92.  
  93. #ifndef _G_NAMES_HAVE_UNDERSCORE
  94. #define _G_NAMES_HAVE_UNDERSCORE 1
  95. #endif
  96.  
  97. #ifndef _G_DOLLAR_IN_LABEL
  98. #define _G_DOLLAR_IN_LABEL 1
  99. #endif
  100.  
  101. /* #ifndef _G_FRIEND_BUG
  102.    #define _G_FRIEND_BUG 1
  103.    #endif
  104. */
  105.  
  106. #ifdef _G_NEED_STDARG_H
  107. #undef _G_NEED_STDARG_H    /* already included above */
  108. #endif
  109.  
  110. #ifndef _G_wchar_t
  111. #define _G_wchar_t      wchar_t
  112. #endif
  113.  
  114. #ifndef _G_pid_t
  115. #define _G_pid_t        _PID_T
  116. #endif
  117.  
  118. #endif /* !_G_config_h */
  119.